<?php if ( !defined( 'BASEPATH' ) ) exit( 'No direct script access allowed' ); ?>
<div class="login">
    <h3>会员登陆</h3>
    <div class="tipbox">
        <?php if(isset($errLoginTip) && $errLoginTip) echo $errLoginTip; ?>
        <?php echo validation_errors(); ?>
    </div>
    <?php echo form_open( base_url( 'login/submit' ) ); ?>
    <ul class="common_form">
        <li>
            <label for="username">帐号</label>
            <?php echo form_input( array( 'id' => 'username', 'name' => 'username', 'class' => 'txtbox' ), set_value( 'username' ) ); ?>
        </li>
        <li>
            <label for="password">密码</label>
            <?php echo form_password( array( 'id' => 'password', 'name' => 'password', 'class' => 'txtbox' ) ); ?>
        </li>
        <li class="btn_line">
            <?php echo form_submit( array( 'id' => 'loginbtn', 'name' => 'submit', 'class' => 'btn' ), '登陆' ); ?>
        </li>
        <li class="reg_line">
            <a href="<?php echo base_url( 'register' ); ?>">免费注册</a>
        </li>
    </ul>
    <?php echo create_token(); ?>
    <?php echo form_close(); ?>
</div>
<div class="c"></div>
<script type="text/javascript">
$(document).ready(function(){
    $('#username').focus();
});
</script>